package cn.tedu.icop.basic.service.impl;

import cn.tedu.icop.api.domain.GunStatusUpdateParam;
import cn.tedu.icop.basic.dao.repository.GunRepository;
import cn.tedu.icop.basic.service.GunService;
import org.springframework.stereotype.Service;

@Service
public class GunServiceImpl implements GunService {
    private GunRepository gunRepository;
    public GunServiceImpl(GunRepository gunRepository) {
        this.gunRepository = gunRepository;
    }
    @Override
    public Boolean editGunStatus(GunStatusUpdateParam param) {
        return gunRepository.updateGunStatus(param)>0;
    }
}
